<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="lib/html5.js"></script>
	<script type="text/javascript" src="lib/respond.min.js"></script>
	<script type="text/javascript" src="lib/PIE_IE678.js"></script>
	<![endif]-->
	<link href="__PUBLIC__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
	<link href="Tpl/Service/common/order/Repairtype_add.css" rel="stylesheet" type="text/css" />
	<!--[if IE 6]>
	<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<title>客服中心</title>
</head>
<body>
		<div class="pd-20">
			<form id="form_name" class="form form-horizontal" action="">
				<input type="hidden" name="type" value="{$Think.get.getCate}"/>
				<input type="hidden" name="keyword" value="{$Think.get.keyword}"/>
				<div class="row">
					<label class="form-label col-3" for="">类别：</label>
					<div class="formControls col-6">
						<input type="text" name="text" class="input-text" value="{$data.text}" datatype="*" errormsg="请输入类别！">
					</div>
					<div class="col-3"></div>
				</div>

				<div class="row">
					<label class="form-label col-3" for="">排序：</label>
					<div class="formControls col-6">
						<input type="text" name="sort" class="input-text" value="{$data.sort}" datatype="*" errormsg="请输入排序！">
					</div>
					<div class="col-3"></div>
				</div>

				<div class="row">
					<div class="col-9 col-offset-3">
						<button id="sub" class="btn btn-primary radius" type="submit">确定</button>
					</div>
				</div>
			</form>
		</div>
	
	<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/lib/icheck/jquery.icheck.min.js"></script> 
	<script type="text/javascript" src="__PUBLIC__/lib/Validform/5.3.2/Validform.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script>
	<script type="text/javascript" src="__PUBLIC__/lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/getUrl.js"></script>
	<script type="text/javascript" src="__PUBLIC__/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<!--	<script type="text/javascript" src="Tpl/Service/common/order/create.js"></script>-->
	<script src="http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
		<script>
			$(function(){
				$("#form_name").Validform({
					tiptype:2,
					ajaxPost:true,
					showAllError:true,
					beforeSubmit:function(curform){

						curform.ajaxSubmit({
									type:'POST',
									url:'{:U('Service/RepairType/add')}',
								success:function(data){
							console.log(status);
							if(data.status==true){
								layer.msg("修改成功");
								var index = parent.layer.getFrameIndex(window.name);
								setTimeout(function(){
									parent.layer.close(index);
								},1000);
								parent.location.reload();

							}else{
								layer.msg(data.sign);
							}
						}
					});
						return false;
					}
				});
			});
		</script>
	
	
	</body>
	</html>